/* MeetingRoomWrapper.css - 会议入口页面样式 */

.join-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background-color: #f0f2f5;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 视频容器样式 */
.video-container {
  background-color: #ffffff; /* 设置为白色背景 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #ffffff; /* 视频元素也设置为白色背景 */
}

.join-screen h1 {
  color: #1890ff;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  text-align: center;
}

.join-screen form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  gap: 1rem;
  margin-bottom: 2rem;
}

.join-screen input {
  padding: 0.8rem 1rem;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.join-screen input:focus {
  border-color: #40a9ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.join-screen button {
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.8rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.join-screen button:hover {
  background-color: #40a9ff;
}

.connection-info {
  width: 100%;
  max-width: 320px;
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.connection-info p {
  margin: 0.5rem 0;
  text-align: left;
  font-size: 0.9rem;
  color: #333;
}

.highlight {
  font-weight: bold;
  color: #1890ff;
}

.help-text {
  color: #1890ff;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 1rem;
  display: inline-block;
}

.help-box {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 4px;
  border-left: 3px solid #1890ff;
  text-align: left;
}

.help-box h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1rem;
  color: #333;
}

.help-box ol {
  margin: 0;
  padding-left: 1.5rem;
}

.help-box li {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.note {
  font-size: 0.8rem;
  color: #ff4d4f;
  margin-top: 0.8rem;
}

/* 错误回退UI样式 */
.meeting-error-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background-color: #f0f2f5;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-align: center;
}

.meeting-error-fallback h2 {
  color: #ff4d4f;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.meeting-error-fallback p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #333;
}

.meeting-error-fallback .error-message {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  border-radius: 4px;
  padding: 0.8rem;
  margin: 1rem 0;
  color: #ff4d4f;
  max-width: 90%;
  overflow-wrap: break-word;
}

.meeting-error-fallback .error-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.meeting-error-fallback button {
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.meeting-error-fallback button:hover {
  background-color: #40a9ff;
}

.meeting-error-fallback button:nth-child(2) {
  background-color: #f0f0f0;
  color: #333;
}

.meeting-error-fallback button:nth-child(2):hover {
  background-color: #d9d9d9;
}

/* 通用错误回退UI样式 */
.error-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background-color: #f0f2f5;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-align: center;
}

.error-fallback h2 {
  color: #ff4d4f;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.error-fallback p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #333;
}

.error-fallback button {
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background-color 0.3s;
}

.error-fallback button:hover {
  background-color: #40a9ff;
}
